package org.example.repository.condition;


import org.example.repository.Condition;

public class BinaryOperatorCondition extends Condition {

    private final String op;
    private final String property;
    private final Object value;

    public BinaryOperatorCondition(String op, String property, Object value) {
        this.op = op;
        this.property = property;
        this.value = value;
    }

    public String getOp() {
        return op;
    }

    public String getProperty() {
        return property;
    }

    public Object getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "BinaryOperatorCondition{" +
                "op='" + op + '\'' +
                ", property='" + property + '\'' +
                ", value=" + value +
                '}';
    }
}
